# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=staekka
pkgver=9.57787ca
pkgrel=8
pkgdesc='This plugin extends Metasploit for some missing features and modules allowing interaction with other/custom exploits/ways of getting shell access.'
url='https://github.com/j-0-t/staekka'
arch=('x86_64' 'aarch64')
groups=('blackarch' 'blackarch-exploitation')
depends=('metasploit')
makedepends=('git' 'make' 'clang' 'ruby-bundler')
options=('!strip' '!emptydirs')
source=("git+https://github.com/j-0-t/$pkgname.git")
sha512sums=('SKIP')
install="$pkgname.install"

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/opt/$pkgname"
  install -dm 755 "$pkgdir/opt/metasploit/plugins/"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.md

  rm README.md

  cp -a * "$pkgdir/opt/$pkgname/"
}

